﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmManagRubricInfo.aspx.cs" Inherits="ExamV5.WorkExam.FrmManagRubricInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
   
   <script type="text/javascript" language="javascript">
       function SubmitKeyClick(button) {
           if (event.keyCode == 13) {
               event.keyCode = 9;
               event.returnValue = false;
               document.all[button].click();
           }
       }

       function EditRubric(strID) {
           var strURL = "FrmEditRubricInfo.aspx?ID=" + strID + "";

           var iWidth = 690;
           var iHeight = 600;
           var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
           var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
           window.open(strURL, "编辑职业测评题库信息", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");

       }
       function ShowRubric(strID) {
           var strURL = "FrmShowRubricInfo.aspx?ID=" + strID + "";

           var iWidth = 650;
           var iHeight = 600;
           var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
           var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
           window.open(strURL, "查看职业测评题库信息", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");
       }
       
		</script>
</head>
<body>
    <form id="form1" runat="server">
    <table  cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
				<tr height="730">
					
                    <td  valign="top" >
                       <asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>
						        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                                <tr>
                                    <td background="../image/QueryBG.gif" height="33" align="right">
                                    <table cellSpacing="0" cellPadding="0" border="0">
                                <tr>
                                    <td> 
                                    <!--查询区-->
                                <asp:dropdownlist id="DDLQuery" runat="server" style="height:26px;">
								<asp:ListItem Value="a.RubricTitle">题目内容</asp:ListItem>
                                <asp:ListItem Value="a.OptionAnswer">答案选项</asp:ListItem>
                                <asp:ListItem Value="a.OKAnswer">正确答案</asp:ListItem>
							</asp:dropdownlist></td><td><asp:TextBox ID="txtQuery" runat="server" CssClass="text"  Height="23" Width="150"></asp:TextBox></td>
                                        <td><asp:Button ID="butQuery" runat="server"  Text="查  询" style='POSITION:relative;TOP:-2px' CssClass="but2G"  
                                            onclick="butQuery_Click"/><asp:Button ID="butAdd" runat="server" Text="新  增"  style='POSITION:relative;TOP:-2px' CssClass="but2R" OnClientClick="javascript:EditRubric('0');" />&nbsp;</td>
                               
                                   </tr>
                        </table>     
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    <!--数据列表区-->
                                    <asp:GridView ID="DataGridInfo" runat="server" AllowPaging="True"  
                                            onpageindexchanging="DataGridInfo_PageIndexChanging" 
                                            AutoGenerateColumns="False" CellPadding="10" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" PageSize="10" 
                                            AllowSorting="True" onsorting="DataGridInfo_Sorting"  
                                            onrowdatabound="DataGridInfo_RowDataBound" 
                                            DataKeyNames="EditUserCode,CreatNumberNO,ID" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61"></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                            <Columns>
                                                <asp:TemplateField HeaderText="选中">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="CheckBoxSelect" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="30px" />
                                                </asp:TemplateField>
                                                
                                                <asp:BoundField DataField="SubjectName" HeaderText="所属科目"   SortExpression="SubjectName">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                               
                                                <asp:BoundField DataField="RubricTitle" HeaderText="试题内容">
                                                </asp:BoundField>
                                               
                                                 <asp:BoundField DataField="IsDel" HeaderText="禁用"  SortExpression="IsDel" >
                                                <HeaderStyle Width="40px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                
                                                <asp:TemplateField HeaderText="操作">
                                                    <ItemTemplate>
                                                        <asp:Label id="labLook" runat="server">查看</asp:Label>
                                                        <asp:Label id="labEdit" runat="server">修改</asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="60px" />
                                                </asp:TemplateField>
                                                
                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
                                     </asp:GridView>
                                    </td>
                                </tr>
                                <tr height="25">
                                    <td><br />
                                    <!--分页区-->
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left"><asp:linkbutton id="LBSelect" runat="server" 
                                                    onclick="LBSelect_Click">选中当页</asp:linkbutton>&nbsp;<asp:linkbutton 
                                                    id="LBUse" runat="server" onclick="LBUse_Click">启用所选</asp:linkbutton>&nbsp;<asp:linkbutton 
                                                    id="LBNotUse" runat="server" onclick="LBNotUse_Click">禁用所选</asp:linkbutton>&nbsp;<asp:linkbutton 
                                                    id="LBDel" runat="server" onclick="LBDel_Click">删除所选</asp:linkbutton>&nbsp;</td>
											<td align="right"><asp:label id="labRescordCount" runat="server">总共&nbsp;<font color='#0000C0'><B>0</B></font>&nbsp;条记录&nbsp;<font color='#0000C0'><B>1/1</B></font>&nbsp;页&nbsp;</asp:label>
												<asp:LinkButton id="LBFirstPage" runat="server" onclick="LBFirstPage_Click">第一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBPrevPage" runat="server" onclick="LBPrevPage_Click">上一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBNextPage" runat="server" onclick="LBNextPage_Click">下一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBLastPage" runat="server" onclick="LBLastPage_Click">最后页</asp:LinkButton>&nbsp;</td>
										</tr>
									    </table>
                                    </td>
                                </tr>
                                </table>
                           </ContentTemplate>
                        </asp:UpdatePanel>
					</td>
			
				</tr>
			</table>
    </form>
</body>
</html>

